package org.kz.shange.common;

/**
 *
 * @author jineral
 * @param <T>
 */
public class KzResp<T> {
    private T data;
    private String msg;
    private boolean successed;
    public void error(){
        this.successed=false;
        this.msg="失败！";
    };
    public void error(String msg){
        this.error();
        this.msg=msg;
    };
    public void success(){
        this.successed=true;
        this.msg="成功";
    }
    public void success(T t){
        this.success();        
        this.data=t;
    }

//<editor-fold defaultstate="collapsed" desc="property">
    public T getData() {
        return data;
    }
    
    public void setData(T data) {
        this.data = data;
    }
    
    public String getMsg() {
        return msg;
    }
    
    public void setMsg(String msg) {
        this.msg = msg;
    }
    
    public boolean isSuccessed() {
        return successed;
    }
    
    public void setSuccessed(boolean successed) {
        this.successed = successed;
    }
//</editor-fold>
}
